<template>
  <router-view />
</template>

<script>
import { defineComponent } from "vue";
import './css/main.css'
import { api } from "boot/api";

export default defineComponent({
  name: 'App',
  setup(){
    sessionStorage.setItem("mode", "light");
    let t = sessionStorage.getItem('info')
    if (!t) {
      api.get("/info").then(res => {
          if (res.status !== 200) {
            return;
          }
          sessionStorage.setItem("info", JSON.stringify(res.data));
        }
      ).then(()=>{
        location.reload()
      });
    }
    return {

    }
  }
})
</script>

<style>

</style>
